<template>
  <div class="to-box">
    <div class="box" v-for="(v, i) in tt" :key="i">
      <div class="top">
        <p>{{ v.time }}</p>
        <div>{{ v.remark }}</div>
      </div>
      <div class="center">
        <h3>{{ v.topic }}</h3>
        <p>978</p>
        <!-- <img :src="to.img" /> -->
        <img :src="v.img" alt="" />
        <b>{{ v.name }}</b>
      </div>
      <ul>
        <li v-for="(item, index) in v.ig" :key="index">
          <img :src="item.igs" alt="" />
          <p>{{ item.discribe }}</p>
          <span class="iconfont icon-xingxing" id="icon"></span>
          <b>{{ v.num }}</b>
        </li>
      </ul>
      <button>查看全部专辑图片</button>
    </div>
  </div>
</template>
<script>
import getlink from "../../apis/getapi";
export default {
  name: "HomeBanner",
  data() {
    return {
      tt: [],
    };
    // console.log(this.arr);
  },
  created() {
    getlink("/data/one").then((ok) => {
      //   console.log(ok);
      this.tt = ok.data.today1;
      // console.log(this.arr);
    });
    // console.log(this.arr);
  },
};
</script>
<style scoped>
@import url(../../assets/font1/iconfont.css);
.to-box .box {
  width: 100%;
  height: 7.2rem;
  margin-top: 0.6rem;
  /* background-color: cyan; */
}
.to-box .box .top {
  height: 0.8rem;
  position: relative;
}
.to-box .box .top p {
  font-size: 0.14rem;
  margin: auto;
  text-align: center;
  font-weight: bold;
  top: 0rem;
}
.to-box .box .top div {
  max-width: 3rem;
  position: absolute;
  top: 0.2rem;
  left: 0.25rem;
  width: 96%;
  margin: auto;
  font-size: 0.1rem;
  padding: 0.13rem 0.1rem;
  border: dotted #ff7f7f 0.01rem;
  background-color: #fbf7f6;
}
.to-box .box .center {
  display: flex;
  justify-content: space-evenly;
  flex-direction: column;
  align-items: center;
}
.to-box .box .center h3 {
  margin: 0.02rem 0;
}
.to-box .box .center p {
  font-size: 0.1rem;
  color: #989898;
  margin-bottom: 0.08rem;
  margin-top: 0.05rem;
}
.to-box .box .center img {
  width: 13%;
  border-radius: 50%;
}
.to-box .box .center b {
  font-size: 0.1rem;
}
.to-box .box ul {
  display: flex;
  flex-wrap: wrap;
  background-color: #f2f2f2;
  justify-content: space-around;
}
.to-box .box ul li {
  margin-top: 0.1rem;
  width: 45%;
  height: 2rem;
  background-color: yellow;
  margin-bottom: 0.6rem;
}
.to-box .box ul li img {
  border-radius: 0.05rem;
  width: 100%;
  height: 100%;
}
.to-box .box ul li p {
  padding-left: 0.12rem;
  margin-top: 0.2rem;
  margin-bottom: 0.05rem;
}
.to-box .box ul li #icon {
  margin-left: 0.12rem;
  font-size: 0.05rem;
  color: #c7c7c7;
}
.to-box .box ul li b {
  font-size: 0.05rem;
  margin-left: 0.06rem;
  color: #c7c7c7;
}
.to-box .box button {
  width: 96%;
  background-color: #ff7f7f;
  margin: auto;
  border: none;
  height: 0.3rem;
  color: white;
  margin-left: 0.07rem;
  margin-top: 0.1rem;
}
</style>